.class public Lcom/instagram/android/activity/ActivityInTab;
.super Lcom/instagram/android/activity/h;
.source "ActivityInTab.java"


# static fields
.field private static s:Landroid/os/Bundle;


# instance fields
.field private t:Z

.field private u:Lcom/facebook/b/a/j;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 41
    const/4 v0, 0x0

    sput-object v0, Lcom/instagram/android/activity/ActivityInTab;->s:Landroid/os/Bundle;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/instagram/android/activity/h;-><init>()V

    .line 51
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/activity/ActivityInTab;->t:Z

    .line 184
    return-void
.end method

.method public static a(Landroid/os/Bundle;)V
    .locals 0
    .parameter

    .prologue
    .line 181
    sput-object p0, Lcom/instagram/android/activity/ActivityInTab;->s:Landroid/os/Bundle;

    .line 182
    return-void
.end method

.method public static a(Landroid/support/v4/app/r;Landroid/os/Bundle;)V
    .locals 5
    .parameter
    .parameter

    .prologue
    const/4 v4, 0x1

    .line 69
    const-string v0, "screen"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 70
    const-string v1, "id"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 72
    const-string v2, "media"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 73
    invoke-static {p0, v1, v4}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;Z)Lcom/instagram/e/b/a/a;

    move-result-object v0

    .line 99
    :goto_0
    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 100
    return-void

    .line 74
    :cond_0
    const-string v2, "user"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 75
    invoke-static {p0, v1}, Lcom/instagram/android/util/v;->b(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    goto :goto_0

    .line 76
    :cond_1
    const-string v2, "userid"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 77
    invoke-static {p0, v1}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    goto :goto_0

    .line 78
    :cond_2
    const-string v2, "hashtag"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 79
    invoke-static {p0, v1}, Lcom/instagram/android/util/v;->d(Landroid/support/v4/app/r;Ljava/lang/String;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    goto :goto_0

    .line 80
    :cond_3
    const-string v2, "direct"

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 82
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 83
    const-string v2, "InboxFragment.ADD_TO_BACKSTACK"

    invoke-virtual {v0, v2, v4}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 84
    new-instance v2, Lcom/instagram/e/b/a/a;

    invoke-direct {v2, p0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v3, Lcom/instagram/android/directshare/d/d;

    invoke-direct {v3}, Lcom/instagram/android/directshare/d/d;-><init>()V

    invoke-virtual {v2, v3, v0}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 85
    const-string v0, "ds_has_comment"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    .line 86
    invoke-static {p0, v1, v0, v4}, Lcom/instagram/android/util/v;->a(Landroid/support/v4/app/r;Ljava/lang/String;ZZ)Lcom/instagram/e/b/a/a;

    move-result-object v0

    goto :goto_0

    .line 87
    :cond_4
    const-string v1, "direct_request"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 89
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 90
    const-string v1, "InboxFragment.ADD_TO_BACKSTACK"

    invoke-virtual {v0, v1, v4}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 91
    new-instance v1, Lcom/instagram/e/b/a/a;

    invoke-direct {v1, p0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v2, Lcom/instagram/android/directshare/d/d;

    invoke-direct {v2}, Lcom/instagram/android/directshare/d/d;-><init>()V

    invoke-virtual {v1, v2, v0}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 92
    new-instance v0, Lcom/instagram/e/b/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v1, Lcom/instagram/android/directshare/i/b;

    invoke-direct {v1}, Lcom/instagram/android/directshare/i/b;-><init>()V

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    goto/16 :goto_0

    .line 93
    :cond_5
    const-string v1, "inbox"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 94
    new-instance v0, Lcom/instagram/e/b/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v1, Lcom/instagram/android/directshare/d/d;

    invoke-direct {v1}, Lcom/instagram/android/directshare/d/d;-><init>()V

    invoke-virtual {v0, v1}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    goto/16 :goto_0

    .line 96
    :cond_6
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "Received unknown starting bundle type"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method static synthetic a(Lcom/instagram/android/activity/ActivityInTab;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 30
    iput-boolean p1, p0, Lcom/instagram/android/activity/ActivityInTab;->t:Z

    return p1
.end method

.method private b(I)Landroid/support/v4/app/Fragment;
    .locals 1
    .parameter

    .prologue
    .line 146
    packed-switch p1, :pswitch_data_0

    .line 156
    :pswitch_0
    const/4 v0, 0x0

    :goto_0
    return-object v0

    .line 148
    :pswitch_1
    new-instance v0, Lcom/instagram/android/fragment/bf;

    invoke-direct {v0}, Lcom/instagram/android/fragment/bf;-><init>()V

    goto :goto_0

    .line 150
    :pswitch_2
    new-instance v0, Lcom/instagram/android/fragment/en;

    invoke-direct {v0}, Lcom/instagram/android/fragment/en;-><init>()V

    goto :goto_0

    .line 152
    :pswitch_3
    new-instance v0, Lcom/instagram/android/fragment/ft;

    invoke-direct {v0}, Lcom/instagram/android/fragment/ft;-><init>()V

    goto :goto_0

    .line 154
    :pswitch_4
    new-instance v0, Lcom/instagram/android/fragment/dw;

    invoke-direct {v0}, Lcom/instagram/android/fragment/dw;-><init>()V

    goto :goto_0

    .line 146
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_4
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method


# virtual methods
.method protected h()Ljava/lang/String;
    .locals 2

    .prologue
    .line 120
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "MainTabActivity.EXTRA_TAB_NAME"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public i()V
    .locals 3

    .prologue
    .line 130
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->f()Landroid/support/v4/app/r;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/app/r;->b(II)Z

    .line 131
    return-void
.end method

.method protected j()V
    .locals 3

    .prologue
    .line 134
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "com.instagram.extra.EXTRA_STARTING_FRAGMENT"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    .line 136
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->f()Landroid/support/v4/app/r;

    move-result-object v1

    sget v2, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v1, v2}, Landroid/support/v4/app/r;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v1

    .line 137
    if-nez v1, :cond_0

    .line 138
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->f()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/r;->a()Landroid/support/v4/app/af;

    move-result-object v1

    .line 139
    invoke-direct {p0, v0}, Lcom/instagram/android/activity/ActivityInTab;->b(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    .line 140
    sget v2, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v1, v2, v0}, Landroid/support/v4/app/af;->b(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/af;

    .line 141
    invoke-virtual {v1}, Landroid/support/v4/app/af;->a()I

    .line 143
    :cond_0
    return-void
.end method

.method protected k()Landroid/os/Bundle;
    .locals 2

    .prologue
    .line 175
    sget-object v0, Lcom/instagram/android/activity/ActivityInTab;->s:Landroid/os/Bundle;

    .line 176
    const/4 v1, 0x0

    sput-object v1, Lcom/instagram/android/activity/ActivityInTab;->s:Landroid/os/Bundle;

    .line 177
    return-object v0
.end method

.method public onBackPressed()V
    .locals 3

    .prologue
    .line 163
    const-string v0, "ActivityInTab.BROADCAST_BACK_PRESSED"

    invoke-static {v0}, Lcom/instagram/n/d;->b(Ljava/lang/String;)V

    .line 165
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->f()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/r;->f()I

    move-result v0

    if-nez v0, :cond_0

    .line 166
    new-instance v0, Landroid/content/Intent;

    const-string v1, "MainTabActivity.BROADCAST_BACK_PUSHED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 167
    const-string v1, "MainTabActivity.EXTRA_TAB_NAME"

    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->h()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 168
    invoke-static {v0}, Lcom/instagram/n/d;->a(Landroid/content/Intent;)Z

    .line 172
    :goto_0
    return-void

    .line 170
    :cond_0
    invoke-super {p0}, Lcom/instagram/android/activity/h;->onBackPressed()V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter "savedInstanceState"

    .prologue
    .line 57
    invoke-super {p0, p1}, Lcom/instagram/android/activity/h;->onCreate(Landroid/os/Bundle;)V

    .line 59
    new-instance v0, Lcom/facebook/b/a/k;

    invoke-direct {v0, p0}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    .line 60
    invoke-virtual {v0}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v0

    const-string v1, "MainTabActivity.BROADCAST_POP_TO_ROOT"

    new-instance v2, Lcom/instagram/android/activity/c;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v3}, Lcom/instagram/android/activity/c;-><init>(Lcom/instagram/android/activity/ActivityInTab;Lcom/instagram/android/activity/b;)V

    invoke-interface {v0, v1, v2}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/activity/ActivityInTab;->u:Lcom/facebook/b/a/j;

    .line 63
    iget-object v0, p0, Lcom/instagram/android/activity/ActivityInTab;->u:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 64
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 125
    iget-object v0, p0, Lcom/instagram/android/activity/ActivityInTab;->u:Lcom/facebook/b/a/j;

    invoke-interface {v0}, Lcom/facebook/b/a/j;->c()V

    .line 126
    invoke-super {p0}, Lcom/instagram/android/activity/h;->onDestroy()V

    .line 127
    return-void
.end method

.method protected onPostResume()V
    .locals 2

    .prologue
    .line 104
    invoke-super {p0}, Lcom/instagram/android/activity/h;->onPostResume()V

    .line 105
    iget-boolean v0, p0, Lcom/instagram/android/activity/ActivityInTab;->t:Z

    if-eqz v0, :cond_0

    .line 106
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->i()V

    .line 107
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/activity/ActivityInTab;->t:Z

    .line 110
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->k()Landroid/os/Bundle;

    move-result-object v0

    .line 114
    if-eqz v0, :cond_1

    .line 115
    invoke-virtual {p0}, Lcom/instagram/android/activity/ActivityInTab;->f()Landroid/support/v4/app/r;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/instagram/android/activity/ActivityInTab;->a(Landroid/support/v4/app/r;Landroid/os/Bundle;)V

    .line 117
    :cond_1
    return-void
.end method
